#!/bin/sh

# called by uscan with '--upstream-version' <version> <file>
tar xzf $3
rm -rf SYMPHONY-*/Cgl SYMPHONY-*/CoinUtils SYMPHONY-*/Clp/* SYMPHONY-*/FlopC++ SYMPHONY-*/Osi

# The files located in SYMPHONY/src/DrawGraph/IGD_1.0 are GPL licensed.
# Removing for now. Will contact upstream.
rm -rf SYMPHONY/src/DrawGraph/IGD_1.0
rm -f $3
tar czf $3 SYMPHONY-*
rm -rf SYMPHONY-*

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $3 $origDir
  echo "moved $3 to $origDir"
fi

exit 0
